package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchMonitoringParameterGroupsMapper;
import com.ruoyi.system.domain.DispatchMonitoringParameterGroups;
import com.ruoyi.system.service.IDispatchMonitoringParameterGroupsService;

/**
 * 监测量分组Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchMonitoringParameterGroupsServiceImpl implements IDispatchMonitoringParameterGroupsService 
{
    @Autowired
    private DispatchMonitoringParameterGroupsMapper dispatchMonitoringParameterGroupsMapper;

    /**
     * 查询监测量分组
     * 
     * @param monitoringParameterGroupsId 监测量分组主键
     * @return 监测量分组
     */
    @Override
    public DispatchMonitoringParameterGroups selectDispatchMonitoringParameterGroupsByMonitoringParameterGroupsId(Long monitoringParameterGroupsId)
    {
        return dispatchMonitoringParameterGroupsMapper.selectDispatchMonitoringParameterGroupsByMonitoringParameterGroupsId(monitoringParameterGroupsId);
    }

    /**
     * 查询监测量分组列表
     * 
     * @param dispatchMonitoringParameterGroups 监测量分组
     * @return 监测量分组
     */
    @Override
    public List<DispatchMonitoringParameterGroups> selectDispatchMonitoringParameterGroupsList(DispatchMonitoringParameterGroups dispatchMonitoringParameterGroups)
    {
        return dispatchMonitoringParameterGroupsMapper.selectDispatchMonitoringParameterGroupsList(dispatchMonitoringParameterGroups);
    }

    /**
     * 新增监测量分组
     * 
     * @param dispatchMonitoringParameterGroups 监测量分组
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchMonitoringParameterGroups(DispatchMonitoringParameterGroups dispatchMonitoringParameterGroups)
    {
        return dispatchMonitoringParameterGroupsMapper.insertDispatchMonitoringParameterGroups(dispatchMonitoringParameterGroups);
    }

    /**
     * 修改监测量分组
     * 
     * @param dispatchMonitoringParameterGroups 监测量分组
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchMonitoringParameterGroups(DispatchMonitoringParameterGroups dispatchMonitoringParameterGroups)
    {
        return dispatchMonitoringParameterGroupsMapper.updateDispatchMonitoringParameterGroups(dispatchMonitoringParameterGroups);
    }

    /**
     * 批量删除监测量分组
     * 
     * @param monitoringParameterGroupsIds 需要删除的监测量分组主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMonitoringParameterGroupsByMonitoringParameterGroupsIds(Long[] monitoringParameterGroupsIds)
    {
        return dispatchMonitoringParameterGroupsMapper.deleteDispatchMonitoringParameterGroupsByMonitoringParameterGroupsIds(monitoringParameterGroupsIds);
    }

    /**
     * 删除监测量分组信息
     * 
     * @param monitoringParameterGroupsId 监测量分组主键
     * @return 结果
     */
    @Override
    public int deleteDispatchMonitoringParameterGroupsByMonitoringParameterGroupsId(Long monitoringParameterGroupsId)
    {
        return dispatchMonitoringParameterGroupsMapper.deleteDispatchMonitoringParameterGroupsByMonitoringParameterGroupsId(monitoringParameterGroupsId);
    }
}
